Computing Multiplicative Inverses in GY{p)
نویسنده
چکیده
Two familiar algorithms, the extended Euclidean algorithm and the Fermât algorithm (based on Fermat's theorem ap = a (mod p)), are analyzed and compared as methods for computing multiplicative inverses in GF(p). Using Knuth's results on the average number of divisions in the Euclidean algorithm, it is shown that the average number of arithmetic operations required by the Fermât algorithm is nearly twice as large as the average number for the extended Euclidean algorithm. For each of the two algorithms, forward and backward versions are distinguished. It is shown that all numbers computed in the forward extended Euclidean algorithm are bounded by the larger of the two inputs, a property which was previously established by Kelisky for the backward version. |
منابع مشابه
Computing the inverses, their power sums, and extrema for Euler's totient and other multiplicative functions
Wepropose a generic dynamic programming algorithm for computing the inverses of a multiplicative function. We illustrate our algorithm with Euler’s totient function and the sum of k-th powers of divisors. Our approach can be further adapted for computing certain functions of the inverses, such as their quantity, the smallest/largest inverse, which may be computed faster than the inverses themse...
متن کاملPerturbation bounds for $g$-inverses with respect to the unitarily invariant norm
Let complex matrices $A$ and $B$ have the same sizes. Using the singular value decomposition, we characterize the $g$-inverse $B^{(1)}$ of $B$ such that the distance between a given $g$-inverse of $A$ and the set of all $g$-inverses of the matrix $B$ reaches minimum under the unitarily invariant norm. With this result, we derive additive and multiplicative perturbation bounds of the nearest per...
متن کاملVerification of Euclid’s Algorithm for Finding Multiplicative Inverses
Multiplicative inverses have been widely used in cryptography. The basic method to find multiplicative inverses is to use Euclid’s Algorithm. When used for this purpose, several changes have to be made to the algorithm in order to make it more effective in finding these inverses. In this work, we use HOL-4 theorem prover to specify and verify Euclid’s Algorithm as it is used in finding multipli...
متن کاملOn Newton-Raphson iteration for multiplicative inverses modulo prime powers
We study algorithms for the fast computation of modular inverses. Newton-Raphson iteration over p-adic numbers gives a recurrence relation computing modular inverse modulo p, that is logarithmic in m. We solve the recurrence to obtain an explicit formula for the inverse. Then we study different implementation variants of this iteration and show that our explicit formula is interesting for small...
متن کاملComputing Multiplicative Zagreb Indices with Respect to Chromatic and Clique Numbers
The chromatic number of a graph G, denoted by χ(G), is the minimum number of colors such that G can be colored with these colors in such a way that no two adjacent vertices have the same color. A clique in a graph is a set of mutually adjacent vertices. The maximum size of a clique in a graph G is called the clique number of G. The Turán graph Tn(k) is a complete k-partite graph whose partition...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2010